@import '~scss/variables';
@import '~scss/mixins';

.container {
  display: grid;
  grid-template-columns: 215px 1fr;
  height: 100%;
}

.dialogTitle {
  padding-bottom: 20px;
  margin-bottom: 12px;
  line-height: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #242e42;
  box-shadow: 0 1px 0 0 $light-color07;
}

.left {
  height: 500px;
  overflow: auto;
}

.right {
  // max-height: calc(100vh - 200px);
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.cutTitle {
  font-size: 12px;
  color: #79879c;
}

.activeTitle {
  color: #242e42 !important;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
}

.leftTab {
  width: 196px;
  height: 36px;
  line-height: 36px;
  font-weight: 500;
  color: #4a5974;
  border-radius: 18px;
  text-indent: 2em;
  cursor: pointer;
  @include ellipsis;

  :global {
    .pipeline_status_icon {
      width: 12px;
      height: 12px;
      background-size: 12px;
    }
  }
}

.leftTab__active {
  width: 196px;
  height: 36px;
  color: #363e4a;
  border-radius: 18px;
  box-shadow: 0 4px 12px 0 rgba(36, 46, 66, 0.1);
  background-color: $bg-color;
  border: solid 1px $border-color;
}

.header {
  height: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  > span {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #000000;
  }
  // button {
  //   float: right;
  //   margin-left: 15px;
  // }
}

.stageContainer {
  margin-bottom: 18px;
}

.logContainer {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  background-color: #242e42;
  color: white;
  overflow-y: auto;
}

.LogItem {
  margin-bottom: 12px;
}

.LogItem__title {
  text-indent: 1em;
  position: relative;
  width: 100%;
  height: 36px;
  line-height: 36px;
  border-radius: 4px;
  background-color: #36435c;
  cursor: pointer;

  :global {
    .icon {
      display: inline-block;
      vertical-align: top;
      margin: 5px 15px 0 0;
    }

    .kubed-icon {
      color: white;
    }
  }
}

.logitem_status {
  float: right;
  margin-right: 20px;
  color: #79879c;

  :global {
    .pipeline_status_icon {
      margin-left: 15px;
      width: 12px;
      height: 12px;
      background-size: 12px;
    }
  }
}

.LogItem_content {
  padding-left: 60px;
  line-height: 22px;
  background-color: #242e42;
  color: white;
}

.logs_container {
  .header {
    line-height: 32px;
    margin-bottom: 0;

    a {
      display: flex;
      align-items: center;
      span {
        margin-top: 2px;
        margin-left: 8px;
        font-size: 12px;
      }
    }
  }
  pre {
    padding: 10px 0 10px 20px;
  }
}
